package com.mostromas.ess.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysDepartment对象", description="部门信息表")
public class SysDepartment implements Serializable {
    private static final long serialVersionUID = -3847383312595656916L;

    @ApiModelProperty(value = "部门 ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "部门名称")
    private String name;

    @ApiModelProperty(value = "经理ID")
    private String username;

    @ApiModelProperty(value = "部门经理")
    @TableField(exist = false)
    private SysUser sysUser;

    @ApiModelProperty(value = "备注")
    private String remark;
}
